package com.chixing.day06.static_demo;

public class Test{
    public static void main(String[] args) {
        int[] a={10,47,65,68,71,83,92};
        if(a.length%2!=0){
            double i = Math.floor(a.length/2);
            System.out.println(a[(int)i]);
        }
        if(a.length%2==0){
            int i=a.length/2;
            double sum = 0;
            sum+=a[(int) i]+a[(int) i-1];
            sum = Math.floor(sum/2);
            System.out.println(sum);
        }
    }
}
